{% if not poolList|first %}
    <h2>Please set options in the Pool Options tab</h2>
    {% else %}
        {% for pool in poolList %}
            <h2>Pool {{forloop.counter}}</h2>
            <table border="1">
                <tr>
                    <th>Seed</th>
                    <th>Name</th>
                    <th>Club I</th>
                    <th>Club II</th>
                    <th>Rating</th>
                </tr>
                {% for fencer in pool %}
                    <tr>
                        <td>{{fencer.place}}</td>
                        <td>{{fencer.identity}}</td>
                        <td>{{fencer.primaryClub.abbreviation}}</td>
                        <td>{{fencer.secondaryClub.abbreviation}}</td>
                        <td>
                            {% if event.limitWeapon == "Foil" %}
                                {{fencer.foilRating}}
                            {% endif %}
                            {% if event.limitWeapon == "Epee" %}
                                {{fencer.epeeRating}}
                            {% endif %}
                            {% if event.limitWeapon == "Saber" %}
                                {{fencer.saberRating}}
                            {% endif %}
                        </td>
                    </tr>
                {% endfor %}
            </table>
            <br>
        {% endfor %}
{% endif %}